package com.htgd.gardenexpo.dao;

import com.htgd.gardenexpo.entity.WxUserCoupon;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.htgd.gardenexpo.vo.MyCouponRecordVO;
import com.htgd.gardenexpo.vo.MyCouponVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 优惠券和用户关系 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-08-08
 */
@Mapper
public interface WxUserCouponDao extends BaseMapper<WxUserCoupon> {

    List<WxUserCoupon> getByIdAndOpenId(@Param("openId") String openId, @Param("id")Integer id);

    Integer getById(Integer id);

    List<MyCouponVO> myCoupon(String openId);

    List<MyCouponRecordVO> myCouponRecord(String openId);

    List<MyCouponRecordVO> myCouponRecord2(String openId);
}
